
import sys
import logging

from flask import Flask
from flask_cors import CORS
from flask_blueprint.login_blueprint import login_blueprint
from flask_blueprint.sign_up_blueprint import sign_up_blueprint
from flask_blueprint.role_blueprint import role_blueprint
from flask_blueprint.operation_log_blueprint import operation_log_blueprint



app = Flask(__name__)

app.logger.setLevel(logging.DEBUG)

app.register_blueprint(login_blueprint)
app.register_blueprint(sign_up_blueprint)
app.register_blueprint(role_blueprint)
app.register_blueprint(operation_log_blueprint)
CORS(app)


if __name__ == '__main__':
    
    app.run(debug=True)
    
    # /root/python3env/venv/bin/gunicorn -w 4 -b 127.0.0.1:8000 main:app